import request from '@/utils/request'

/**
 * 查询数据
 * return promise
 */
export const list = searchPage => {
  return request({
    url: '/sign/page',
    method: 'POST',
    data: searchPage
  })
}

export const deleteById = id => {
  return request.delete(`/sign/${id}`)
}

export const getById = id => {
  return request.get(`/sign/${id}`)
}

export const add = sign => {
  return request({
    url: '/sign',
    method: 'POST',
    data: sign
  })
}
